package com.ge.boot05features;

import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication
public class Boot05FeaturesApplication {

    public static void main(String[] args) {
        // 创建SpringApplication
        SpringApplication application = new SpringApplication(Boot05FeaturesApplication.class);

        // 自定义应用的底层设置
        application.setBannerMode(Banner.Mode.OFF);

        // 应用运行入口
        application.run(args);

        // Builder方式构建SpringApplication， 通过FluentAPI进行设置
//        new SpringApplicationBuilder()
//                .main(Boot05FeaturesApplication.class)
//                .bannerMode(Banner.Mode.OFF)
//                .run(args);
    }

}
